<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateThirdpartyHistoryProjectsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('thirdparty_history_project', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();

			//int 11 与tyw_thirdparty_industry中的id相关联
			$table->integer('industry_id');
			//varchar 255 项目名称
			$table->string('name');
			//varchar 255 项目委托单位
			$table->string('master');
			//text 工作内容
			$table->text('content');
			//timestamp 项目开始时间
			$table->timestamp('start_time');
			//timestamp 项目结束时间
			$table->timestamp('end_time');

			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('thirdparty_history_projects');
	}

}
